package com.linkface.card;

import android.content.Context;
import android.graphics.Bitmap;

import java.util.Map;

import cn.linkface.ocr.LFCardRecognizeListener;


/**
 * Copyright (c) 2017-2018 LINKFACE Corporation. All rights reserved.
 */
public abstract class CardRecognizer {

    private static final String TAG = CardRecognizer.class.getSimpleName();

    public Context mContext;

    public CardRecognizer(Context context) {
        this.mContext = context;
    }

    public abstract void recognizeCard(int isAuto, Bitmap bitmap, boolean isVertical, Map<String, Object> extraRequestParams, LFCardRecognizeListener cardRecognizeListener);

    public abstract void releaseRecognizer();

    public Context getContext() {
        return mContext;
    }
}
